﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TexasHoldem.RankedHands
{
    public class HighCardHand: RankedHand
    {
        private HighCardHand(Hand hand) : base(hand) { }
        public static HighCardHand TryCreateFrom(Hand hand)
        {
            return hand.Cards.Any() ? new HighCardHand(hand) : null;
        }
        public override string RankName
        {
            get { return "High Card"; }
        }

        protected override ushort RankingStrength
        {
            get { return 0; }
        }

        protected override IEnumerable<Card> FindDefiningCards()
        {
            return Cards.OrderByDescending(c => c.Value);
        }
    }
}
